JavaScript Strings

JS Challenge 1

Given a variable country set to "Guinea Bissau", replace the space by a "-", console.log the variable

JS Challenge 2

Given a variable city set to " Sydney ", remove the extra spaces and console log it

JS Challenge 3

Given a variable attraction set to "Opera House", lower case it and console log it

JS Challenge 4

Given a variable place set to "school", upper case it and console log it

JS Challenge 5

Using template literals, log this sentence, "I went to visit the Opera House in Sydney, right next to my school. Now, I'm getting ready for my trip to Guinea Bissau!"

Go back